﻿<%@ Page Title="Payable Report" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="Payable.aspx.cs" Inherits="WebUI.EditPages.Payable" %>
<%@ Register Src="~/Controls/POSControls/PurchaseHistoryListCtrl.ascx" TagName="PurchaseHistoryListCtrl" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
    <script type="text/javascript">
        function printClose() {
            //            document.getElementById('divToolBar').style.display = 'none';
            //            document.getElementById('divStatusBar').style.display = 'none';
            window.print();
            //window.close();
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align:middle; text-align:left">
                <asp:LinkButton class="tbbutton" ID="btnPrint" runat="server" OnClientClick="return false;">
                    <img src="../Images/trans.png" /><asp:Label ID="label1" runat="server" Text="Supplier:"></asp:Label>
                </asp:LinkButton>
                <asp:DropDownList ID="ddlSupplier" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlSupplier_OnSelectedIndexChanged"></asp:DropDownList>
                <img src="../Images/tbSep.png" />
                <asp:LinkButton class="tbbutton" ID="btnPaymentHistory" runat="server" OnClick="btnEdit_OnClick" >
                    <img src="../Images/Edit.gif" /><asp:Label ID="label12" runat="server" Text="Edit Balance"></asp:Label>
                </asp:LinkButton>
                <img src="../Images/tbSep.png" />
                <asp:DropDownList ID="ddlPaymentMethod" runat="server"></asp:DropDownList>
                <asp:LinkButton class="tbbutton" ID="btnPay" runat="server" OnClick="btnPay_OnClick" >
                    <img src="../Images/creditcard_32.png" /><asp:Label ID="label3" runat="server" Text="Pay"></asp:Label>
                </asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <div style="height:350px; overflow:scroll">
        <uc:PurchaseHistoryListCtrl ID="poList" runat="server" AllowPaging="false" AllowSelecting="true" AllowSorting="true"
         PageSize="10" CssClass="" GridBorder="Solid" GridBorderColor="Black" GridLineStyle="Both" Width="100%"/>
     </div>
     <div style='float:right'>
        <asp:Label class='labelMessage0' ID="Label2" runat="server" Text="Total:"></asp:Label>
        <asp:Label class='labelMessage0' ID="lblTotal" runat="server" Text=""></asp:Label>
        &nbsp;&nbsp;
        <asp:Label class='labelMessage0' ID="Label4" runat="server" Text="Paid:"></asp:Label>
        <asp:Label class='labelMessage0' ID="lblPaid" runat="server" Text=""></asp:Label>
        &nbsp;&nbsp;
        <asp:Label class='labelMessage0' ID="Label5" runat="server" Text="Balance:"></asp:Label>
        <asp:Label class='labelMessage0' ID="lblBal" runat="server" Text=""></asp:Label>
        &nbsp;&nbsp;
     </div>
</asp:Content>